﻿import QtQuick 2.4
import QtQuick.Window 2.0
//import QtWebKit 3.0
Rectangle
{


    //传递的值
    property string passName:""
    property bool   isPassName:false
    property string cityRan: ""
    //获取全屏参数
    property int rightM:Screen.width
    property int topM:Screen.height

    signal openAppRanking()
    signal openAPPDetaShow()
    signal colseSiteRanking()

    signal openSliverTime()

    signal closeWidOnRanking()
    signal closeSatelLitePanel()
    id:root
    color:"transparent"
    width:rightM*0.9
    height:topM*0.9

    //定义放大宽倍数
    property double x_enl:1.0
    //定义放大高倍数
    property double y_enl:1.0

    //放大缩小需要更改AppRanking.qml id为rootAppR的transform
    //放大缩小需要更改APPIndex.qml id为root_index的transform
   //放大缩小需要更改SliderStyleMy.qml id为zzz的transform
     //放大缩小需要更改APPPopu.qml id为root的x_enl ,y_enl


    //AppAreaMeasurement{
    //    id:sysAreaMeasurement
    //    anchors.right: parent.right
    //    anchors.rightMargin:100
    //    anchors.top:parent.top
    //   anchors.topMargin:150
    //    visible: false
    //}
    
    AppToolDistMeasure{
        id:sysDistMeasure
        anchors.right: parent.right
        anchors.rightMargin:100
        anchors.top:parent.top
        anchors.topMargin:150
        visible: false
    }

    Image
      {
           id:systemName
           source:"./切图/头/系统名.png"
           anchors.left:parent.left
           anchors.leftMargin:10
           anchors.top:parent.top
           anchors.topMargin:10
           transform: Scale { origin.x: 0; origin.y: 0; xScale: root.x_enl;yScale: root.y_enl}
           z:1
           visible: false
      }

      APPTitle
      {
            id:title
           // width:parent.width*0.124
            anchors.top:parent.top
            anchors.right:parent.right
            rightM:root.width
            topM:root.height
            z:4
            visible: false

       }
        APPMenu
        {
            id:menu
           // width:parent.width*0.45
            anchors.top:parent.top
            anchors.topMargin:height
            anchors.right: parent.right
            anchors.rightMargin: 15
            z:3
            visible: false
        }


        APPTimeBar
        {
            id:timebar
            width:parent.width
            anchors.bottom:parent.bottom
            anchors.left: parent.left
            anchors.right: tail.left
            z:2
        }

         APPTail
         {
             id:tail
//             width:parent.width
             anchors.right: parent.right
             anchors.bottom: parent.bottom
             anchors.bottomMargin: 38
             z:2
         }

         CyberThreatWidget
         {
             id:cyberThreatWidget
             anchors.top:  parent.top
             anchors.left:  parent.left
             anchors.topMargin: 60
             anchors.leftMargin:  400
             visible: false
             z:2
         }

         CyberThreatWidgetChart
         {
             id:cyberThreatWidgetChart
             anchors.verticalCenter: parent.verticalCenter
             anchors.leftMargin: 0
             anchors.left: parent.left
             visible: false
             z:2
         }

         CyberThreatWidgetList
         {
             id:cyberThreatWidgetList
             anchors.verticalCenter: parent.verticalCenter
             anchors.rightMargin: 0
             anchors.right: parent.right
             visible: false
             z:2
         }

         Connections{
             target: app
             onSignalShowMessage:{
                 messageBox.message = message
                 messageBox.show()
             }
             onSignalShowThreatWidget:{
                 cyberThreatWidget.visible = vis
                 cyberThreatWidgetChart.visible = vis
                 cyberThreatWidgetList.visible = vis
             }
         }
}

